number of good pairs